<!--<footer class="copyright">
  <div class="row">
    <div class="col-xs-12">
      <p>© 2016 MWTH,  Privacy · Terms</p>
    </div>
  </div>
</footer>-->


<if condition="isMobile()"> 
<style>
   .bottomMenu li{list-style-type:none;}
   .bottomMenu li a{padding-top:5px; display:block; color:#bbb;}
   .bottomMenu li a.on{color:#12b7f5;}
   .bottomMenu{margin:0; padding:0; width:100%; display:table; background:#fff; position:fixed; bottom:0; border-top:1px solid #dbdbdb;}
   .bottomMenu li{display:table-cell; text-align:center;}
   .bottomMenu li i{font-size:24px; display:inline-block;}
   .bottomMenu li p{margin-bottom:0px; font-size:12px;}
</style>
<div style="height:45px;"></div>
<ul class="bottomMenu">
    <li><a href="{:U('Index/index')}"><i class="icon-home"></i><p>工作台</p></a></li>
    <li><a href="{:U('Mission/index')}"><i class="icon-edit"></i><p>审批管理</p></a></li>
    <li><a href="{:U('Mission/mymission')}"><i class="icon-folder-open"></i><p>我的文档</p></a></li>
    <li><a href="{:U('Member/index')}"><i class="icon-user"></i><p>个人中心</p></a></li>
</ul>





<script>
    $('.bottomMenu li a').each(function(index, element) {
		if(window.location.href.indexOf($(this).attr('href')) > 0){
			 $(this).addClass('on');
		}
        $(this).addClass();
    });
</script>





</if>
</div>





<!-- -->

<style>
 .DataList .DataListItem:hover{background:#E1EFFF;}
.optionBtnBox{padding-top:12px;}
	.aui_state_focus .aui_title{background:#12B7F5;}
	.aui_state_focus .aui_ne,.aui_state_focus .aui_nw{background:#12B7F5; display:none;}
	
	.aui_state_focus .aui_e,.aui_state_focus .aui_w{background:#F7F7F7; display:none;}
	
	.aui_titleBar {
  width: 100%;
  height: 0;
  position: relative;
  bottom: 45px;
  _bottom: 0;
  _margin-top: -30px;
}.aui_title {
  height: 45px;
  line-height: 45px;
  padding: 0 25px 0 0;
  _padding: 0;
  text-indent: 12px;
  color: #FFF;
  font-size:14px;
  font-weight: 700;
  text-shadow: none;
}.aui_close {
  top: 12px;
  right: 9px;
  
}
	.aui_state_focus .aui_sw,.aui_state_focus .aui_se,.aui_state_focus .aui_s{background:#F7F7F7; display:none;}
	.aui_state_focus .aui_content{display:block;}
	.aui_state_focus .aui_n{background:#12B7F5; overflow:hidden; height:45px;}
	.aui_state_focus table.aui_border, .aui_state_focus table.aui_dialog{width:100%;}
	.aui_state_focus .aui_outer{display:block; box-shadow:none;}
	
	.aui_state_focus .aui_nw,.aui_state_focus .aui_ne,.aui_state_focus .aui_se,.aui_state_focus .aui_sw{width:0;}
	.aui_state_focus .aui_title{text-align:left;}
	.padding0{padding:0;}
	
	

</style>









<!-- 解决手机端模态框表单错位 -->











<if condition="isMobile()"> 
  <style>
      .OptionBox{position:static;}
	  .OptionBox .modal-header .btn{font-size:16px; margin-left:-4px; position:relative; top:-4px; background-color:transparent; border-color:#fff;}
	  
	  .modal-open{padding-top:0; background-color:#fff;}
	  .modal-backdrop{}
	  .container{padding:0;}
	  

    .OptionBox .modal-dialog{height:100%; background:#fff;}
	
	.OptionBox .animated{animation-duration:0.15s;}
	
	
    .OptionBox .form-group{margin:0; padding:12px;}
	.OptionBox .modal-header{background:#12b7f5; text-align:center; padding:8px;}
	.OptionBox .modal-header .close{display:block; margin:0; height:30px; width:30px; line-height:30px; float:left;color:#fff; opacity:1;}
	.OptionBox .modal-header h3{margin:0; font-size:16px; height:30px; line-height:30px; color:#fff;}
	.OptionBox .modal-header .btn{float:right; margin-top:4px;}
	.PagesBox{padding:8px; text-align:center;}
	.PagesBox .btn{padding: 6px 12px;}
	.loading{text-align:center; padding:8px;}
	::-webkit-scrollbar {
  width: 0; 
  }
  
  
  
  .auii_statei_focus .aui_close{text-indent:0; background-image:none; text-align:center; display:block; width:35px; z-index:2; line-height:45px; height:45px; top:0; left:0;}
  .auii_statei_focus .aui_close{font-size:24px; color:#fff;}

    .auii_statei_focus{position:relative !important; top:0 !important; left:0 !important; width:auto !important;}
    .auii_statei_focus td.aui_n{background:#12B7F5; position:static !important;}
	.auii_statei_focus .aui_title{background:#12B7F5;}
	.auii_statei_focus .aui_ne,.auii_statei_focus .aui_nw{background:#12B7F5;}
	
	.auii_statei_focus .aui_e,.auii_statei_focus .aui_w{background:#F7F7F7;}
	
	
	.auii_statei_focus .aui_sw,.auii_statei_focus .aui_se,.auii_statei_focus .aui_s{background:#F7F7F7; display:none;}
	.auii_statei_focus .aui_content{display:block;}
	.auii_statei_focus .aui_nw{height:45px;}
	
	.auii_statei_focus .aui_titleBar{top:0; position:absolute; bottom:inherit;}
	.auii_statei_focus table.aui_border, .auii_statei_focus table.aui_dialog{width:100%;}
	.auii_statei_focus .aui_outer{display:block; box-shadow:none;}
	
	.auii_statei_focus .aui_nw,.auii_statei_focus .aui_ne,.auii_statei_focus .aui_se,.auii_statei_focus .aui_sw{width:0; display:none;}
	.auii_statei_focus .aui_title{text-align:center;}
	.auii_statei_focus .aui_close{right:inherit;}
	.padding0{padding:0;}
	
	
	.auii_statei_focus button.btn-primary{position:absolute; top:8px; right:8px; background-color:transparent; border-color:#fff; padding:3px 8px;}
	
	
	
	
	
	.auii_statei_focus .aui_title {
  height: 45px;
  line-height: 45px;
  font-size:16px;
  font-weight:normal;
  text-shadow:none;
}
	/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar
{
    width: 0;
    height: 0;
    background-color: #F5F5F5;
}
 
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 0;
    background-color: #F5F5F5;
}
 
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
    border-radius: 0;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}
</style>
  
  <!-- 页面加载完成后所有模态框移到body下面 --> 
  
  <script src="/Public/Js/modal.mobile.js"></script>
  <div class="modal OptionBox" id="window">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header"> <a class="btn btn-primary btn-sm hidden">保存</a><a class="close" data-dismiss="modal"><i class="icon-angle-left"></i></a>
        <h3>模态框</h3>
      </div>
      <div class="modal-body" style="background:#fff;"> </div>
    </div>
  </div>
</div> 
<else/>

<div class="modal OptionBox" id="window">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header"> <a class="close" style="float:right;" data-dismiss="modal">x</a>
        <h3>模态框</h3>
      </div>
      <div class="modal-body" style="background:#fff;"> </div>
      
      
      <div class="modal-footer"> 
            <a class="btn btn-primary btn-large hidden">保存</a>
            <a href="#" class="btn" data-dismiss="modal">取消</a> 
        </div> 
    </div>
  </div>
</div>

</if>

<!-- 解决手机端模态框表单错位结束 -->
<style>
    .BottomOptionBox{position:fixed; background:#fff; width:100%; z-index:1000001; bottom:-700px;}
	.BottomOptionBox .Box{padding:10px;}
	
	
	.BottomOptionBox .Box .button{display:inline-block; font-size:12px; border-radius:4px; text-align:center; line-height:1; width:50px; height:50px; border:1px solid #5DB4F3;}
	
	.BottomOptionBox .Box .button *{vertical-align:middle;}
	.BottomOptionBox .Box .button i{font-size:24px; width:100%; display:inline-block; margin-top:5px;}
	
	.aui_content{display:block;}
	.aui_main{display:block; overflow-y:scroll;-webkit-overflow-scrolling: touch; ::-webkit-scrollbar:3px;}
	::-webkit-scrollbar:{width:3px;}
	 
</style>
<!-- 通用底部弹窗 -->
<div class="BottomOptionBox">
    <div class="Box" id="BottomOptionBox">
         
    </div>
</div>
<!-- 通用底部弹窗操作层 -->
<div id="BottomOptionBoxLayer" class="hidden" onClick="hideLayer();" style="position:fixed; z-index:1000000; top:0; left:0; background:rgba(0,0,0,0.63); width:100%; height:20000px;"></div> 
<!-- 通用底部弹窗操作层end -->

<!-- 通用底部弹窗结束 -->



<!-- 手机上点击列表弹出操作选项 --> 
<script src="__PUBLIC__/Js/validform/Validform.js"></script> 
<script src="__PUBLIC__/Js/ThinkBox/jquery.ThinkBox.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/ThinkBox/css/ThinkBox.css" media="all">
<script>
function findWeather() {
  var cityUrl = 'http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js';
  $.getScript(cityUrl, function(script, textStatus, jqXHR) {
    var citytq = remote_ip_info.city ;// 获取城市
    var url = "http://php.weather.sina.com.cn/iframe/index/w_cl.php?code=js&city=" + citytq + "&day=0&dfc=3";
    $.ajax({
      url : url,
      dataType : "script",
      scriptCharset : "gbk",
      success : function(data) {
        var _w = window.SWther.w[citytq][0];
        var _f= _w.f1+"_0.png";
        if(new Date().getHours() > 17){
           _f= _w.f2+"_1.png";        
        }
        var img = "<img width='16px' height='16px' src='http://i2.sinaimg.cn/dy/main/weather/weatherplugin/wthIco/20_20/" +_f
        + "' />";
        var tq = citytq + " " + img + " " + _w.s1 + " " + _w.t1 + "℃～" + _w.t2 + "℃ " /*+ _w.d1 + _w.p1 + "级"*/;
        $('#weather').html(tq);
      }
    });
  });
}
    $(document).ready(function(e) {
		findWeather();
		
		
		
		$('.listajaxrequest').each(function(index, element) {
			$(this).click(function(e) {
				$('.listajaxrequest').parent().find('.listajaxrequest').removeClass('on');
				$(this).addClass('on');
                var url = $(this).attr('rel');
				$.cookie('loadIndexUrl', url, {path:'/'});
				updateList();
            });
            
        });
		
		
		
		
		
		
		<if condition="isMobile()">
		
		$('#pagetitle').html($('.pagetitle').text());
		
		
		
		
		
		
		</if>
		
		PageInit();
		
		
        showModal($('.OptionBoxBtn'));
    });
	//绑定删除事件
	function bindremovedata(){
		$('.deleteBtn').each(function(index, element) {
			$('.deleteBtn').removeClass('deleteBtn');
            $(this).click(function(e) {
				if(!confirm('您确定要删除当前记录吗？')){
				    return false;
				}
                var url = $(this).attr('rel');
				$.get(url, {}, function(data){
				    //移除元素
					//alert($(element).attr('removeElement'));
					setTimeout(function(){
						
						$($(element).attr('removeElement')).remove();
						//如果列表没有数据了，重新加载
						
						updateList();
						}, 500);
					
					
					
					
					hideLayer();
				}, 'json');
            });
        });
		
		
		//底部删除按钮
		$('#BottomOptionBox .BottomdeleteBtn').each(function(index, element) {
			$('#BottomOptionBox .BottomdeleteBtn').removeClass('BottomdeleteBtn');
            $(this).click(function(e) {
				
				if(!confirm('您确定要删除当前记录吗？')){
				    return false;
				}
                var url = $(this).attr('rel');
				$.get(url, {}, function(data){
				    //移除元素
					//alert($(element).attr('removeElement'));
					
					setTimeout(function(){
						
						$($(element).attr('removeElement')).remove();
						//如果列表没有数据了，重新加载
						
						updateList();
						}, 50);
					
					
					
					
					hideLayer();
				}, 'json');
            });
        });
		
	}
	//绑定模态框事件
	function showModal(element){
		element.click(function(e) {
			hideLayer();
            $.get($(this).attr('rel'), {}, function(html){
				$('.OptionBox .modal-body').html(html.tbody);
				$('.OptionBox .modal-header h3').html($('.OptionBox .OptionTitle').html());

				if($('.OptionBox .checkoutformsearch').length > 0){
					$('.OptionBox .checkoutformsearch input[type="text"]:eq(0)').focus();
					$('.OptionBox .modal-header .btn').removeClass('hidden');
					$('.OptionBox .modal-footer .btn').removeClass('hidden');
					$('.OptionBox .modal-header .btn').html($('.OptionBox .OptionBtn').html());
					$('.OptionBox .modal-footer .btn').html($('.OptionBox .OptionBtn').html());
					
					$('.OptionBox .modal-header .btn,.OptionBox .modal-footer .btn').click(function(e) {
						
						$(".checkoutformsearch:eq(0)").Validform({
							ajaxPost:true,
							tiptype:function(data,s){
								if(s.type == 1){
									$.ThinkBox.success(data,{'delayClose':0, 'close': '关闭'});
								}
							},
							datatype:{
								"text":function(gets,obj,curform,regxp){
									return true;
								},"image":function(gets,obj,curform,regxp){
									return true;
								}
							},
							callback:function(data){
								//检测登录 
								$('.ThinkBox-close').trigger('click');
								if(data.status == 0){
									//$.ThinkBox.error(data.info,{'delayClose':200});
									//$.ThinkBox('hide');
									
									$.ThinkBox.error(data.info,{'delayClose':200}); 
								}else{
									//alert(data.info); 
									
									$('.OptionBox .modal-header .close').trigger('click');
									//更新列表
									$('.DataList').html(data.tbody);
									$('.PagesBox').html(data.pages);
									//绑定分页事件
									PageInit();
									
									
								}
							}
						});

                        $('.OptionBox .checkoutformsearch').submit();
                    });
				}
				
				
				
				if($('.OptionBox form').length == 0){
					$('.OptionBox .modal-header .btn').addClass('hidden');
				}
				
				
				
				
				
				
				
				
				
				
				
				
				if($('.OptionBox .checkoutform').length > 0){
					$('.OptionBox .modal-header .btn').removeClass('hidden');
					$('.OptionBox .modal-footer .btn').removeClass('hidden');
					$('.OptionBox .modal-header .btn').html($('.OptionBox .OptionBtn').html());
					$('.OptionBox .modal-footer .btn').html($('.OptionBox .OptionBtn').html());
					$('.OptionBox .modal-header .btn,.OptionBox .modal-footer .btn').click(function(e) {

						$(".checkoutform:eq(0)").Validform({
							ajaxPost:true,
							tiptype:function(data,s){
								if(s.type == 1){
									$.ThinkBox.success(data,{'delayClose':0, 'close': '关闭'});
								}
							},
							datatype:{
								"text":function(gets,obj,curform,regxp){
									return true;
								},"image":function(gets,obj,curform,regxp){
									return true;
								}
							},
							callback:function(data){
								//检测登录 
								$('.ThinkBox-close').trigger('click');
								if(data.status == 0){
									//$.ThinkBox.error(data.info,{'delayClose':200});
									//$.ThinkBox('hide');
									
									$.ThinkBox.error(data.info,{'delayClose':200}); 
								}else{
									//alert(data.info); 
									
									$('.OptionBox .modal-header .close').trigger('click');
									//更新列表
									updateList();
									/*$.get(window.location.href, {}, function(data){
										$('.DataList').html(data.tbody);
										$('.PagesBox').html(data.pages);
										//绑定分页事件
										PageInit();
									}, 'json');*/
								}
							}
						});

                        $('.OptionBox .checkoutform').submit();
                    });
				}
			}, 'json');
        });
		
		
		
	}
	
	
	
	
	
	
	
	
	
	function PageInit(){
		//列表鼠标经过
		/*$('.DataList .DataListItem').mouseenter(function(e) {
            $(this).addClass('on');
			
        });
		$('.DataList .DataListItem').mouseleave(function(e) {
            $(this).removeClass('on');
			
        });*/
		
		//$.cookie('loadIndexUrl', window.location.href, {path:'/'});
		
		//下拉框
			$(".PagesBox select").each(function(index, element) {
                element.onchange = function(){
					var url = $(this).val();
					$.get(url,{},function(data){
						$('.DataList').html(data.tbody);
						$('.PagesBox').html(data.pages);
						//绑定分页事件
						PageInit();
					},"json")
				}
            });
		
		
		
		
		
		$('.PagesBox').find('a').each(function(e) {
			var url = $(this).attr('href');
			$(this).attr('href', 'javascript:void(0);');
			$(this).attr('rel', url);
			$(this).click(function(e) {
                $.get(url, {}, function(data){
						$('.DataList').html(data.tbody);
						$('.PagesBox').html(data.pages);
						$.cookie('loadIndexUrl', url, {path:'/'});
						//绑定分页事件
						PageInit();
					}, 'json');
				});
            });
		
		BottomOptionBtnInit();
		bindscrollload();
		bindremovedata();
	}
	
	
	
	
	//绑定滚动加载
	function bindscrollload(){
		
		<if condition="isMobile()"> 
		
		$(window).scroll(function(){
		　　var scrollTop = $(this).scrollTop();
		　　var scrollHeight = $(document).height();
		　　var windowHeight = $(this).height();
		　　if(scrollTop + windowHeight == scrollHeight){
			   if($('.PagesBox .next').length > 0){
				   $('.loading').removeClass('hidden');
				   
			　　　　$.get($('.PagesBox .next').attr('rel'), {}, function(data){
					   $(data.tbody).appendTo('.DataList');
					   $('.PagesBox').html(data.pages);
					   $('.loading').addClass('hidden');
					   PageInit();
				   }, 'json');
				   $('.PagesBox .next').removeClass('next');
			   }
		　　}
		});
		</if>
	}
	
	
	//更新列表数据
	function updateList(){
		
		var html = '<div class="lockwindowlayout" style="overflow:hidden; height:0; padding:10px 0;"><div class="loader-inner line-scale" style="text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>.lockwindowlayout .line-scale{height:20px;}.lockwindowlayout .line-scale div{background:#5ec8ff; height:20px;}</style></div>';
		$('.lockwindowlayout').remove();
		$(html).insertBefore('.DataList');
		$('.lockwindowlayout').animate({'height':'40px'},10);
		$('.DataList').html('');
		$('.PagesBox').html('');
		$.get($.cookie('loadIndexUrl'), {}, function(data){
			$('.lockwindowlayout').remove();
			if(data.empty == 1){
				data.tbody += '<p class="" style="padding:10px 0; text-align:center;">暂无记录</p>';
				$('.PagesBox').html('');
				
			}
			$('.DataList').css({'opacity': 0});
			$('.DataList').html(data.tbody);
			$('.DataList').animate({'opacity': 1}, 300);
			$('.PagesBox').html(data.pages); 
			$('.lockwindowlayout').remove();
			//绑定分页事件
			PageInit();
		}, 'json');
	}
	
	//更新弹出窗口数据
	function updateWindowList(){
		var index=Number($(".aui_state_focus").attr('index'))-1;
		console.log(index);
		index=index>=1?index:1;
		var url=$(".aui_state_lock:last").attr('rel');
		var html = '<div class="lockwindowlayout" style="overflow:hidden; height:0; padding:10px 0;"><div class="loader-inner line-scale" style="text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>.lockwindowlayout .line-scale{height:20px;}.lockwindowlayout .line-scale div{background:#5ec8ff; height:20px;}</style></div>';
		$('.lockwindowlayout').remove();
		$(html).insertBefore('.WindowList');
		$('.lockwindowlayout').animate({'height':'40px'},10);
		$('.WindowList').html('');
		$('.WindowPagesBox').html('');
		$.get(url, {}, function(data){
			$('.lockwindowlayout').remove();
			if(data.empty == 1){
				data.tbody += '<p class="" style="padding:10px 0; text-align:center;">暂无记录</p>';
				$('.WindowPagesBox').html('');
			}
			$('.WindowList').css({'opacity': 0});
			$('.WindowList').html(data.tbody);
			$('.WindowList').animate({'opacity': 1}, 300);
			$('.WindowPagesBox').html(data.pages); 
			$('.lockwindowlayout').remove();
			//绑定分页事件
			PageInit();
		}, 'json');
	}
	
	function BottomOptionBtnInit(){
		
		<if condition="isMobile()">
		
		
		$('.DataListItem').each(function(index, element) {
			$(this).removeClass('DataListItem');
			$(this).click(function(e) {
				//解除滚动事件，防止窗口弹出后加载下一页
				$(window).unbind('scroll');
				$('.BottomOptionBox .Box').html($(this).find('.BottomOptionBtn').html());
				showModal($('.BottomOptionBox .OptionBoxBtn'));
				$('#BottomOptionBoxLayer').removeClass('hidden');
				$('.BottomOptionBox').animate({'bottom':'0px'},100);
				
				//删除
				bindremovedata();
			});
		});
		</if>
	}
	//隐蒧半透明层
	function hideLayer(){
		$('.BottomOptionBox').animate({'bottom':'-700px'},100);
		$('#BottomOptionBoxLayer').addClass('hidden');
	}
</script>





<script>
function lockwindow(){
		<if condition="isMobile()">
		var html = '<div id="lockwindowlayout" style="background-color:rgba(255,255,255,0.2); position:fixed; bottom:0; top:0; left:0; right:0; z-index:20000000;"><div class="loader-inner line-scale" style="position:absolute;top:50%; width:100%; margin-top:-50px; text-align:center;"><div></div><div></div><div></div><div></div><div></div></div><style>#lockwindowlayout .line-scale div{background:#5ec8ff;}.aui_state_focus{opacity:0;}</style></div>';
		$('body').append(html);
		</if>
	}


    

    function _openWindow(url, width, title, buttontitle, callback, source){
		
		
		$(window).unbind("scroll");
		lockwindow();
		
		var lock = true;
		var height = $(window).height() - 200;
		<if condition="isMobile()">
			width = '100%';
			lock = false;
			var height = $(window).height() - 45;
			</if>
		var mydialog = art.dialog.load(url, {init:function(){
			//打开窗口后隐藏其它不必要元素
			
			//alert($('.aui_content').html());
			
			
			
			
			
			
			<if condition="isMobile()">
			var curr = new Date().getFullYear();
            var opt = {

            }

            opt.date = {preset : 'date'};
			opt.datetime = { preset : 'datetime', minDate: new Date(1992,3,10,9,22), maxDate: new Date(2114,7,30,15,44), stepMinute: 5  };
			opt.time = {preset : 'time'};
			opt.tree_list = {preset : 'list', labels: ['Region', 'Country', 'City']};
			opt.image_text = {preset : 'list', labels: ['Cars']};
			opt.select = {preset : 'select'};
		$('.datetimeinput').scroller('destroy').scroller($.extend(opt['datetime'], { theme: 'android-ics light', mode: 'scroller', display: 'bottom', lang: 'zh' }));
			
			</if>
			
			
			
			
			
			
			
			
			
			hideLayer();
			//return false;
			<if condition="isMobile()">
			$('#lockwindowlayout').remove();
			$(".auii_statei_focus").hide();
			
			$('.modal-shiftfix').addClass('hidden');
			$('body').addClass('padding0');
			$('.aui_state_focus').addClass('auii_statei_focus');
						
			
			
			$('.aui_state_focus .aui_close').text('').addClass('icon-angle-left');
			
			$(".aui_state_focus").css({"animationDuration":"0.3s"}).addClass("animated slideInLeft").one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
					//动画结束后可能有退场动作，通过判断是否有退场属性来执行
					$(".aui_state_focus").removeClass('animated slideInLeft');
				});
			
			
			
			$('.aui_state_focus').animate({'opacity':1},100);
			//插入按钮前要清空原来的按钮
			$('.auii_statei_focus .aui_titleBar button').remove();
			var okBtn = $('.auii_statei_focus .aui_buttons').html();
			$('.auii_statei_focus .aui_buttons').hide();
			$(okBtn).insertAfter('.aui_close');
			
			
			
			
			$('.auii_statei_focus .aui_titleBar button').each(function(index, element) {
                $(this).click(function(e) {
                    $('.auii_statei_focus .aui_buttons button').eq(index).trigger('click');
                });
            });
			
				$('.aui_state_focus .aui_main').height($(window).height() - 50);
			
			 <else/>
			if($('.aui_state_focus .aui_main').height() > $(window).height()){
				$('.aui_state_focus .aui_main').height($(window).height() - 200);
			}
			</if>
			
			
			
			var index = $(".auii_statei_focus").length;
			index ++;
			
			$(".aui_state_focus").attr("index", index);
			$(".aui_state_focus").attr('rel', url);
			$('.aui_state_focus').addClass('index'+index);
			
			
			
			
			if(buttontitle == 'button'){
				 $('.auii_statei_focus .aui_titleBar button').html($('.auii_statei_focus .OptionBtn').html());
			 }if(title == ''){
				 $('.auii_statei_focus .aui_titleBar .aui_title').html($('.auii_statei_focus .OptionTitle').html());
			 }
		},width: width, height: 'auto',lock:lock,title:title,ok:function(){
			
			
			
			if(callback != null){
				callback();
				mydialog.close(); 
				return false;
			}
			
			$(".aui_state_focus .checkoutform:eq(0)").Validform({
							ajaxPost:true,
							tiptype:function(data,s){
								if(s.type == 1){
									$.ThinkBox.success(data,{'delayClose':0, 'close': '关闭'});
								}
							},
							datatype:{
								"text":function(gets,obj,curform,regxp){
									return true;
								},"image":function(gets,obj,curform,regxp){
									return true;
								}
							},
							callback:function(data){
								//检测登录 
								$('.ThinkBox-close').trigger('click');
								if(data.status == 0){
									//$.ThinkBox.error(data.info,{'delayClose':200});
									//$.ThinkBox('hide');
									
									$.ThinkBox.error(data.info,{'delayClose':200}); 
								}else{
									//alert(data.info); 
									//alert(id);
									
									//更新列表
									updateList();
									mydialog.close();
								}
							}
						});
			
			$('.aui_state_focus .checkoutform:eq(0)').submit();
			
			
			if($(".aui_state_focus .checkoutform").length > 0){
				return false;
			}
			
			
			
			
			
			
		},okVal:buttontitle,close:function(){
			
			
			<if condition="isMobile()"> 
			
			if($(".auii_statei_focus").length > 1){
				$(".auii_statei_focus.index"+($(".aui_state_focus").attr("index")*1 - 1)).show().addClass("aui_state_focus");
			}else{
				$("html,body").animate({scrollTop:$.cookie("scroll_hidden")},100);
				$(".modal-shiftfix").removeClass("hidden");
				$("body").removeClass("padding0");
			}
			
			<else/>
			
			if($(".aui_state_lock").length > 0){
			    $(".aui_state_lock").addClass("aui_state_focus");
			}else{
				$("html,body").animate({scrollTop:$.cookie('scroll_hidden')},100);
				$('.modal-shiftfix').removeClass('hidden');
				$('body').removeClass('padding0');
			}
			</if>
			//bindscrollload();
			
		}});
	}
</script>
  <style>
      
	
	
    .OptionBox .form-group{margin:0; padding:12px;}
	.OptionBox .modal-header{background:#12b7f5; text-align:center; padding:8px;}
	.OptionBox .modal-header .close{display:block; margin:0; height:30px; width:30px; line-height:30px; float:left;color:#fff; opacity:1;}
	.OptionBox .modal-header h3{margin:0; font-size:16px; height:30px; line-height:30px; color:#fff;}
	.OptionBox .modal-header .btn{float:right; margin-top:4px;}
	.PagesBox{padding:8px; text-align:center;}
	.PagesBox .btn{padding: 6px 12px;}
	.loading{text-align:center; padding:8px;}
	::-webkit-scrollbar {
  width: 0;
  }
</style>
<!-- 手机上点击列表弹出操作选项结束 -->

</body></html>